home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / tools / dfÜ / amigafax / docs / getty_doc < prev    next >
Encoding:
Text File  |  1996-04-14  |  9.1 KB  |  269 lines

  1. Additional Features added to AmigaUUCP1.17 Getty for AmigaFax
  2. ==============================================================
  3.  
  4. Additional command line parameter added.
  5.  
  6.  -Fn              n=bit-mapped register
  7.    bit
  8.     0  =  1 (always set for Fax)
  9.     1  =  0 Set rate to 19200 after +FCO
  10.      =  1    Don't set rate to 19200 after +FCO, DCE/DTE locked
  11.     2  =  0 Dont Open/Close serial on modem-init
  12.      =  1    Open/Close serial on modem-init
  13.     3  =  0 FCLASS=2
  14.        =  1 FCLASS=2.0
  15.  
  16. So for example, if you want to operate in Fax-Compatible mode, with
  17. your modem having a locked DCE/DTE rate, and you want to Close/Open
  18. the serial device between calls (for some reason this helps a lot when
  19. using the ZyXEL modem, and the A2232 multi-port serial card), you
  20. would add the parameter -F6 when starting Getty.
  21.  
  22. ==========================================================================
  23.  This is the Getty documentation from the AmigaUUCP1.17 distribution
  24. ==========================================================================
  25.  
  26. NAME
  27.     Getty
  28.  
  29. SYNOPSIS
  30.     Getty -Sserialname -Uunit -Bbaud -Bbaud.. -Mc -bn -ln
  31.           -m1 -r0 -h0 -c0 -d0 -xn -A -7 -0 [modem-cmds]
  32.  
  33. FLASH!
  34.     Getty now works with multi-serial ports.  The 1.08 and 1.09
  35.     getty were broken due to bugs in the serial.device ... the 1.10
  36.     Getty now fixes this by introducing file locking constructs to
  37.     lock the serial port instead of intercepting the device vectors.
  38.  
  39.     IN ORDER TO BEHAVE WELL WITH GETTY, YOU MUST USE THE LockSerial
  40.     command to run any external programs that use that particular
  41.     serial port.  You can no longer run terminal programs direct
  42.     because they are no longer locked out by getty if getty is
  43.     accepting a call.  The program LOCKSERIAL may be used to
  44.     synchronously run terminal programs without requiring one to
  45.     kill Getty.
  46.  
  47.     HOWEVER, programs run *FROM* a password entry should NOT use
  48.     LockSerial becaues the port has already been locked by getty
  49.     for the program.
  50.  
  51.     NOTE: Programs run with lockserial must not auto-detach from the
  52.     CLI or lockserial will believe that they have exited and give the
  53.     port back to Getty, causing major problems.
  54.  
  55. DESCRIPTION
  56.     Getty hangs on the specified serial port (serial.device unit 0 by
  57.     default) waiting for connections via the connected modem.  Once
  58.     a connection is accepted Getty adjusts to the proper baud rate
  59.     using the CONNECT message, -B, -A options, then provides a
  60.     Login: request to the caller.
  61.  
  62.     NOTE: A CONNECT message from the modem with no baud rate specified
  63.     will cause Getty to use the first baud rate in the -B list.  If
  64.     the -A option is specified, Getty *always* uses the first baud
  65.     rate in the -B list and never switches to any other baud rate.
  66.  
  67.     Getty disconnects any caller who cannot provide a legal Login and
  68.     Password within 60 seconds.  It also allows only 5 login attempts
  69.     before disconnecting, and any illegal password will result in a
  70.     4 second delay before the next Login: prompt is output.
  71.  
  72.     Upon receiving a legal Login and and Password, verified via
  73.     GETTY:PASSWD, Getty will execute the program specified in
  74.     GETTY:PASSWD, usually UUCICO, and stay off the line until
  75.     UUCICO returns.  When UUCICO returns, Getty will disconnect
  76.     the caller and reset the modem, returning to its original state.
  77.  
  78.     The file GETTY:Getty-Header contains a couple lines of text
  79.     that are sent over the serial port before the Login: request.
  80.     In it you normally have your machine type, name, etc...
  81.  
  82.     Getty runs the specified program in the password entry adding
  83.     the following arguments:
  84.  
  85.         -Getty -DEVICE devicename -UNIT unitnumber
  86.  
  87.     (uucico will recognize said arguments and not attempt to
  88.      initialize / waitfor calls / hangup the modem itself, nor
  89.      will uucico attempt to lock the already locked serial port)
  90.  
  91. TECH NOTES
  92.     In order to monitor the request lock for the serial port (see
  93.     UUMAN:LockSerial and src/util/lockserial.c), GETTY must open
  94.     a file in T: for write and then close it every 3 seconds.  Thus,
  95.     T: should be in your RAM disk.
  96.  
  97. OPTIONS
  98.     Options are given on the command line when you run Getty.  You can
  99.     also UPDATE a currently running Getty's options by running Getty
  100.     for the same device and unit again with the options that need to
  101.     be changed.  Getty will detect whether another getty is already
  102.     running on that port and send the new options to the running getty,
  103.     then return.
  104.  
  105.  
  106.     -Sserialname        Specify serial device, default "serial.device"
  107.  
  108.     -Uunit            Specify unit number, default 0
  109.  
  110.     -Bbaud            Specify up to 32 baud rates
  111.  
  112.     -A            Specify modem will adjust to a single baud
  113.                 rate (locks the serial.device at the first
  114.                 baud rate in the -B list)
  115.  
  116.     -7            Use SERF_7WIRE protocol while online,
  117.                 else uses no protocol while online.  If
  118.                 you are using a modem with speed conversion
  119.                 you need this option or you will most likely
  120.                 overflow the modem's buffer!
  121.  
  122.     -Mc            Select Modem type,
  123.  
  124.                 c = m   Multimodem
  125.                 h   Hays
  126.                 d   Dumb  (no AT or +++ commands are
  127.                        sent to the modem ever).
  128.  
  129.     -mn            Set modem speaker level, default 0.
  130.                 (ATMn command)
  131.  
  132.     -rn            Set modem to answer on the Nth ring
  133.                 (modem must support ATMn).  0 disables
  134.                 answer capability.    The default is to
  135.                 answer on the second ring.
  136.  
  137.     -h0            Ignore CD (carrier detect).  If this option
  138.                 is specified a continuous carrier detect is
  139.                 assumed, causing Getty to request Login:'s
  140.                 over the line as soon as it receives a CONNECT
  141.                 message.
  142.  
  143.                 It is suggested you ONLY use this option
  144.                 when combined with -c0
  145.  
  146.     -c0            Do NOT look for a CONNECT message from the
  147.                 modem... useful for dumb modems.
  148.  
  149.     -d0            Normally Getty will disconnect by dropping
  150.                 DTR.  If this option is specified, Getty will
  151.                 use the less reliable +++ ATH0 sequence.
  152.  
  153.                 NOTE: If your modem has the capability to LOCK
  154.                 the COMPUTER'S SERIAL PORT baud rate, it is
  155.                 *strongly* suggested that you do this for +++
  156.                 to be reliable.
  157.  
  158.     -xn            Set debugging level to n.  If specified
  159.                 debugging messages are sent to stdout instead
  160.                 of GETTY:LOGFILE
  161.  
  162.                 Note: to avoid GETTY:LOGFILE getting too
  163.                 large for busy systems, you can always add
  164.                 an entry to your crontab to delete it once
  165.                 a week (or whenever), or use 'trimfile' to
  166.                 trim it.
  167.  
  168.     -l1            add -HLINK option to commands started by
  169.                 Getty.
  170.  
  171.     -b1            add -BAUD <baud> option to commands started by
  172.                 Getty, this informs the run command what the
  173.                 actual connect baud rate is regardless of the
  174.                 serial port communications baud rate (which is
  175.                 already preset by getty for the application)
  176.  
  177.     -0            Kill any already-running Getty for this
  178.                 serial port and unit.
  179.  
  180.     modem-cmds        You may specify up to 16 specific commands
  181.                 to be sent to the modem whenever it is
  182.                 initialized (usually after a disconnect
  183.                 and on startup).  Each command will be
  184.                 sent to the modem with a CR on the end and
  185.                 a seconds delay afterwords.  Example:
  186.  
  187.                 ATS2=.
  188.  
  189.                 This is useful for provided specialized
  190.                 modems with the appropriate initialization
  191.                 strings.
  192.  
  193. EXAMPLE
  194.     ;   Run a Getty for a MultiModem
  195.  
  196.     run >nil: <nil: Getty -Mm -A -B19200
  197.  
  198.     ;   Run a Getty for a Hays Modem
  199.  
  200.     run >nil: <nil: Getty -Mh -B1200 -B2400
  201.  
  202.     ;   Run a Getty for a Hays Modem and use +++ instead of DTR to
  203.     ;   hangup.  NOTE, when using -d0 you should lock the serial port
  204.     ;   baud rate (if possible) or +++ may be unreliable as a hangup
  205.     ;   method.
  206.  
  207.     run >nil: <nil: Getty -Mh -B2400 -d0
  208.  
  209.     ;   Modify options to a Getty already running in the background
  210.  
  211.     Getty -m1        ; Set speaker on during dialing
  212.     Getty -m0        ; speaker off at all times.
  213.     Getty -0        ; kill background Getty
  214.  
  215. EXAMPLE CRONTAB ENTRIES
  216.     Assuming a getty has been run in the background from your
  217.     startup sequence, the most common desire is to disable the
  218.     modem speaker while you are asleep, and enable it at other
  219.     times.    The following crontab entry will accomplish this:
  220.  
  221. 0    23    *    *    *    getty -m0
  222. 0    11    *    *    *    getty -m1
  223.  
  224.     You can also kill (getty -0) or restart getty from your
  225.     crontab, though the prefered method is to leave it running
  226.     and only disable/enable the autoanswer (-r option) for those
  227.     times you wish your modem to not accept calls.
  228.  
  229. EXAMPLE HARDWIRED ENTRY
  230.     Lets say you have two amigas connected together via a permanent
  231.     serial line.  To run AmigaUUCP between them you want to run Getty
  232.     on one of them (NOT BOTH!).  On machine A you would run Getty
  233.     as follows:
  234.  
  235.     (Machine A):
  236.  
  237.         run >nil: <nil: Getty -B9600 -Md -h0 -c0
  238.  
  239.     The Passwd entry for the remote machine would be something like:
  240.     (Machine A)
  241.  
  242.         machb,uupc,203,0,(UUCP-NOPAS),ram:,uucico -h0 -o
  243.  
  244.     Machine B would have an L.sys entry that looks like:
  245.  
  246.         macha Any SER: 9600 "" "" \r\r\c ogin: machb sword: uupc
  247.  
  248.     In the above configuration, with Getty running on Machine A, Machine
  249.     B would run uucico (usually every X minutes from dcron) using:
  250.  
  251.         1> uucico -smacha -h0 -o -xx
  252.  
  253.     UNFORTUNATELY, with a permanent serial line you cannot run Getty
  254.     on BOTH machines.  This will cause one Getty to echo the other's
  255.     login message and vise versa, causing an infinite loop.  So only
  256.     one machine can poll.
  257.  
  258. FILES/REQUIRES
  259.     GETTY:PASSWD
  260.     GETTY:Getty-Header
  261.     GETTY:LOGFILE
  262.  
  263.     The NULL: handler must be mounted
  264.  
  265. REFERENCES
  266.     Getty
  267.     Passwd
  268.  
  269.